<template>
  <div class="row">
    <div class="title">{{ title }}</div>
    <div class="content" @click="_click">
      <img v-if="value" class="sign" :src="getFile(value)" alt="" />
      <span v-else>马上签名</span>
    </div>
  </div>
</template>

<script>
import { getFile } from '@/api/base'
export default {
  name: 'inputCardItem',
  props: {
    disabled: {
      type: Boolean,
      default: false
    },
    // 标题
    title: {
      type: String,
      default: ''
    },
    value: {
      type: [String],
      default: ''
    }
  },
  data() {
    return {
      getFile
    }
  },
  created() {},
  methods: {
    _click() {
      this.$emit('click')
    }
  }
}
</script>

<style lang="scss" scoped>
.row {
  .title {
    font-family: PingFang SC Regular;
    font-size: 14px;
    font-weight: normal;
    line-height: 19px;
    letter-spacing: 0px;
    color: #171819;
  }
  .content {
    border: 1px solid rgba(232, 232, 232, 1);
    color: rgba(16, 16, 16, 1);
    border-radius: 5px;
    width: 100%;
    height: 160px;
    line-height: 160px;
    font-size: 14px;
    text-align: center;
    margin-top: 6px;
    overflow: hidden;
    .sign {
      width: 100%;
      height: 100%;
    }
  }

  &:last-child {
    .content {
      margin-bottom: 0;

      &::after {
        display: none !important;
        height: 40px;
      }
    }
  }
}
</style>
